package com.breadenglish.cms.api.app.gateway.model;

import com.breadenglish.cms.api.app.gateway.util.CustomDateSerializer;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;

import java.util.Date;

/**
 * Created by jk on 16/1/6.
 */
@ApiObject
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class Feedback {
    @ApiObjectField(description = "反馈ID(uuid 防止重复提交)", required = false)
    private String id;

    @ApiObjectField(description = "用户ID", required = false)
    private String userId;

    @ApiObjectField(description = "反馈内容", required = true)
    private String content;

    @ApiObjectField(description = "用户email", required = false)
    private String email;

    @ApiObjectField(description = "发送日期,提交格式:yyyy-MM-dd", required = false)
    @JsonSerialize(using = CustomDateSerializer.class)
    private Date dt;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getDt() {
        return dt;
    }

    public void setDt(Date dt) {
        this.dt = dt;
    }
}
